
module Bool

  def self.to_b value
    if "TRUE" == value
      true
    elsif "FALSE" == value
      false
    else
      nil
    end
  end

end
